/*****************************************************************************/
/**
 *  @file   ResourceLabelWidget.h
 *  @author Naohisa Sakamoto
 */
/*----------------------------------------------------------------------------
 *
 *  Copyright (c) Visualization Laboratory, Kyoto University.
 *  All rights reserved.
 *  See http://www.viz.media.kyoto-u.ac.jp/kvs/copyright/ for details.
 *
 *  $Id$
 */
/*****************************************************************************/
#pragma once

#include <kvs/glut/Label>

namespace kvs { namespace glut { class Screen; } }

class DataSet;
class ResourceMonitor;


class ResourceLabelWidget : public kvs::glut::Label
{
private:

    DataSet* m_data_set;
    ResourceMonitor* m_resource_monitor;

public:

    ResourceLabelWidget( kvs::glut::Screen* screen );

    void attachResourceMonitor( ResourceMonitor* resource_monitor );
    void attachDataSet( DataSet* data_set );
    void update();
    void screenUpdated();
};
